Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove admin_comment from company #3643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juniwbjerde
Copy link
Member

@juniwbjerde juniwbjerde commented Sep 25, 2024

Remove the field admin_comment from the company model. It was never really used...

I also wrote a custom data migration to make a normal comment on the company with the admin_comment (in case any of the admin_comments were actually useful and shouldn't be totally deleted

Corresponding frontend changes: webkom/lego-webapp#5001

Resolves ABA-1052

Copy link

linear bot commented Sep 25, 2024

Copy link
Member

@ivarnakken ivarnakken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we totally remove it? I thought we only wanted to remove it from the bdb table since it took up space. I don't think we need to remove it as a feature, but instead move it to a better place (like itDAGENE's admin pages haha)

@ivarnakken ivarnakken added discussion Pull requests or issues that need discussion, e.g. regarding controversial/big changes review-needed Pull requests that need review small-fix Pull requests that fix something small labels Sep 25, 2024
@juniwbjerde
Copy link
Member Author

juniwbjerde commented Sep 26, 2024

@ivarnakken I talked to Falk about it, and his impression after talking to Bedkom was that they didn't use it. I don't see why we would need both the admin_comment field as well as normal comments on companies. It's just a bit messy in my opinion, and there's nothing you would write in the admin comment that wouldn't fit just as well as a normal comment (in my opinion). And with normal comments you get the date it was written as well, so that you can more easily see if it's updated info or not. Espescially when we don't just delete the data in the admin_comment field completely, but rather mighrated it to a comment, I feel like it is completly fine. I don't have access to to itDAGENES admin page, how do they do it?

@juniwbjerde juniwbjerde force-pushed the remove-adminComment-from-companies branch from cfa6fed to 2948c1d Compare October 9, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Pull requests or issues that need discussion, e.g. regarding controversial/big changes review-needed Pull requests that need review small-fix Pull requests that fix something small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants